<?php
class Grid extends BaseController_Controller {
	
	public function __construct()
	{			
			parent::__construct();					
			$this->load->library('mdm/mstbarang');
	
	}	
	
	function barang()
	{
		$cls=new MstBarang();	
		//$cls->KdBrg=$this->input->post('fltrKdBrg')
		//if($var=='')
			echo json_encode($cls->Inquiry(
				$this->input->post('fltrKdBrg'),
				$this->input->post('fltrBCode'),
				$this->input->post('fltrNmBrg')
			));
			//echo json_encode($cls->getTable());
		//else
		//echo json_encode($cls);			
	}

	function supplier()
	{
		$cls=new MstSupplier();			
			echo json_encode($cls->Inquiry(
				
			));
	}
	

} 
